Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose more configuration options as environment variables #1380

Merged
merged 7 commits into from
Jan 10, 2025

Conversation

msimberg
Copy link
Contributor

@msimberg msimberg commented Dec 19, 2024

This exposes:

  • PIKA_IGNORE_PROCESS_MASK
  • PIKA_THREADS
  • PIKA_SCHEDULER
  • PIKA_BIND
    as environment variables that can be used to set a default for the corresponding configuration options. PIKA_SCHEDULER corresponds to pika.scheduler and --pika:queueing. --pika:queuing has also been renamed to --pika:scheduler here.

Adds tests for the most important variables: PIKA_THREADS, PIKA_PROCESS_MASK, PIKA_IGNORE_PROCESS_MASK, and PIKA_BIND.

The following are also exposed in this PR as environment variables, but I don't intend to document them as I feel like they could be removed any time. They're exposed for development purposes only.

  • PIKA_AFFINITY
  • PIKA_PU_STEP
  • PIKA_PU_OFFSET
  • PIKA_NUMA_SENSITIVE

@msimberg msimberg self-assigned this Dec 19, 2024
Copy link

codacy-production bot commented Dec 19, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.30% (target: -1.00%) 93.75% (target: 90.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (4694a13) 18217 13772 75.60%
Head commit (d932bdd) 18223 (+6) 13721 (-51) 75.29% (-0.30%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#1380) 32 30 93.75%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

@msimberg msimberg force-pushed the config-environment-variables branch 3 times, most recently from 2d80e98 to 1c610d9 Compare December 20, 2024 09:21
@msimberg msimberg force-pushed the config-environment-variables branch from 1c610d9 to ee539c8 Compare January 8, 2025 10:52
@msimberg msimberg marked this pull request as ready for review January 8, 2025 10:55
@msimberg msimberg force-pushed the config-environment-variables branch from ee539c8 to 4a5b373 Compare January 8, 2025 11:07
@msimberg msimberg added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@msimberg msimberg force-pushed the config-environment-variables branch from 4a5b373 to d932bdd Compare January 10, 2025 08:50
@msimberg msimberg enabled auto-merge January 10, 2025 08:50
@msimberg msimberg added this pull request to the merge queue Jan 10, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 10, 2025
@msimberg
Copy link
Contributor Author

The test failures come from a combination of #1239 and #1380 being merged without being tested together... Merging this manually, and fixing the new test failures separately.

@msimberg msimberg merged commit c2067c3 into pika-org:main Jan 10, 2025
39 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

1 participant